<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page session="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create Project</title>
</head>
<body style="width:90%; text-align: center;float: right;">

<%
	String pname = request.getParameter("pname");
	if(pname == null)
		pname ="";
	
	String purl = request.getParameter("purl");
	if(purl == null)
		purl ="";
		
	String pkeywords = request.getParameter("pkeywords");
	if(pkeywords==null)
		pkeywords = "";
	
	String custId = request.getParameter("custId");
	if(null == custId){
		custId = "";
	}
	
	String message = (String)session.getAttribute("createProjectMessage");
	if(null == message){
		message = "";
	}
%>
	<div>
		<img src="../img/banner5.jpg" width="80%" alt="welcome" id="home"/>
	</div>
	
	<jsp:include page="../facelets/logout.jsp"></jsp:include>
	
	<div style="height:300px;font-family: verdana; font-size:13px;">
	Below fields are mandatory. Provide us the correct data to keep track of your website's search index.
	
	<div style="font-family:verdana; color:red;font-size: 12px; margin-top: 10px;">
		<%= message %>
	</div>
	<form name="createProject" method="post" action="createProject.do">
	<input type="hidden" name="custId" value="<%= custId %>"/>
		<table>
			<tr>
				<td>
					PROJECT NAME:
				</td>
				<td>
					<input type="text" name="pname" size="40" value="<%=pname %>"/>
				</td>
			</tr>
			
			<tr>
				<td>
					PROJECT URL:
				</td>
				<td>
					<input type="text" name="purl" size="40" value="<%= purl %>"/>
				</td>
			</tr>
			
			<tr>
				<td>
					PROJECT KEYWORDS: </br>
					<small>comma separted</small>
				</td>
				<td>
				<textarea rows="5" cols="30" name="pkeywords">
					<%= pkeywords %>
				</textarea>					
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align: right;">
				<input type="submit" name="createSubmit" value="Create Project"/>
				</td>
			</tr>			
		</table>
	</form>
	</div>
	<jsp:include page="../facelets/footer.jsp"></jsp:include>
</body>
</html>